package com.example.chess.utils;

import android.util.Log;

import androidx.annotation.NonNull;

/**
 * Created by xuyougen.
 */
public class LogUtils {

    public static void e(@NonNull String message) {
        StackTraceElement element = Thread.currentThread().getStackTrace()[3];
        String className = element.getClassName();
        Log.e("Chess", String.format("%s.%s()%s: %s",
                className.substring(className.lastIndexOf(".") + 1),
                element.getMethodName(),
                element.getLineNumber(),
                message)
        );
    }
}
